package com.example.wanjinyou.service;

import com.example.wanjinyou.pojo.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.wanjinyou.vo.ArticleVo;
import com.example.wanjinyou.vo.Result;
import com.example.wanjinyou.vo.params.PageParams;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.Chen
 * @since 2022-10-20
 */
public interface ArticleService  {

    /**
     * 分页查询文章列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    /**
     * 查找最热文章
     * @param limit
     * @return
     */
    Result hotArticle(int limit);

    /**
     * 查看文章详情
     * @param articleId
     */
    Result findArtileBodyById(Long articleId);
}
